package org.lv.learning.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import java.math.BigDecimal;

@FeignClient("account-service")
public interface AccountClient {

    @PutMapping("/account/deduct/{userId}/{money}")
    Integer deduct(@PathVariable("userId") Long userId, @PathVariable("money") BigDecimal money);

}
